import request from '@/utils/request'

// 查询今日订单营业额和订单数量
export function listTodayOrder(query) {
  return request({
    url: '/orderList/getTodayOrderList',
    method: 'get',
    params: query
  })
}

// 查询今日订单详细信息
export function listTodayOrders(query) {
  return request({
    url: '/orderList/getTodayDetailsOrder',
    method: 'get',
    params: query
  })
}

// 订单中所点菜品
export function listDishOrder(query) {
  return request({
    url: '/orderList/getDishOrder',
    method: 'get',
    params: query
  })
}

//获取订单中最新一单
export function listNewOrder(query) {
  return request({
    url: '/orderList/getNewOrders',
    method: 'get',
    params: query
  })
}

//模糊搜索所有订单符合条件的订单
export function listLikeOrder(message) {
  return request({
    url: '/orderList/getOrderLike?message=' + message,
    method: 'get',
  })
}
